﻿using Spark.Core.Values;
using System.Collections.Generic;
using WebApiClient;
using WebApiClient.Attributes;

namespace Spark.Config.SDK
{
    [HttpHost("http://localhost")]
    public interface IConfigApi : IHttpApi
    {
        [HttpGet("/monitor/Service/Latest")]
        ITask<BaseResponse<List<Service>>> GetLatestServices(string appCode);

        [HttpGet("/monitor/Config/Latest")]
        ITask<BaseResponse<Config>> GetLatestConfig(ConfigSearchRequest request);
    }
}